#ifndef SDLHSCROLLBAR_H
#define SDLHSCROLLBAR_H

#include <SDL.h>
#include "SDLObject.h"
#include "SDLButton.h"
#include "defines.h"
#include "structs.h"

class SDLObject;
class SDLButton;

class SDLHScrollBar : public SDLObject {
public:
	//SDLHScrollBar();
	SDLHScrollBar(	int handle, SDL_Rect dst, SDL_Rect upButton, SDL_Rect downButton, SDL_Rect bg, SDL_Rect sliderTop,
					SDL_Rect sliderBot, SDL_Rect sliderCenter, const char *fileName, SDLObject *parent, SDL_Surface *sParent, 
					SDL_Event *event);
	//~SDLHScrollBar();

	//void inputHandler();
	void display();
	void doAction(int handle, int message);
private:
	int m_Handle;
	SDLObject *m_pParent;
	SDL_Surface *m_Parent, *m_bg;
	SDLButton *m_upButton, *m_downButton;
	SDL_Event *m_Event;
	SDL_Rect m_Dst;
};

#endif